//
//  CustomUITextField.swift
//  TaQu
//
//  Created by ios on 2022/11/16.
//

import UIKit

protocol CustomUITextFieldDeleteDelegate: NSObjectProtocol{
    func customTextFieldDeleteBackward(textField: CustomUITextField)
}

class CustomUITextField: UITextField {
    
    weak var deleteDelegate: CustomUITextFieldDeleteDelegate?

    override func deleteBackward() {
        self.deleteDelegate?.customTextFieldDeleteBackward(textField: self)
        super.deleteBackward()
    }

}
